<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:composition>
		<h:form>
			<c:if test="${empty crestListaBean.crestLista}">
				<rich:simpleTogglePanel switchType="client" label="#{resourceApp.crest_titulo_lista}">
					<div align="center">
						<h:graphicImage value="/img/info.gif" />
						<h:outputLabel value="#{resourceApp.crest_sin_info}" />
					</div>
				</rich:simpleTogglePanel>
			</c:if>
			<c:if test="${!empty crestListaBean.crestLista}">
				<rich:simpleTogglePanel switchType="client" label="#{resourceApp.crest_titulo_lista}" opened="true">
				<rich:spacer></rich:spacer>
				<rich:spacer></rich:spacer>	
	                <h:panelGrid columns="4" cellpadding="0" cellspacing="0" width="100%">
	                	<h:panelGroup>
	                		<b><h:outputText value="#{resourceApp.crest_crmae_maesmp}"></h:outputText></b>
	                	</h:panelGroup>
	                	<h:outputText value="#{crestListaBean.crmaeDTO.maesmp}">
	                		<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
	                	</h:outputText>	
	                	<h:panelGroup>	
	                		<b><h:outputText value="#{resourceApp.crest_crmae_maemsp}"></h:outputText></b>
	                	</h:panelGroup>
	                	<h:outputText value="#{crestListaBean.crmaeDTO.maemsp}"></h:outputText>
	                	<h:panelGroup>
	                		<b><h:outputText value="#{resourceApp.crest_estmor2}"></h:outputText></b>
	                	</h:panelGroup>
	                	<h:outputText id="esteresesAnio" value="#{crestListaBean.promedioMorasPendientes}">
	                		<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
	                	</h:outputText>
	                	<h:panelGroup>
	                		<b><h:outputText value="#{resourceApp.crest_maemmp}"></h:outputText></b>
	                	</h:panelGroup>
	                	<h:outputText value="#{crestListaBean.crmaeDTO.maemmp}"/>
	                	<h:panelGroup>
	                		<b><h:outputText value="#{resourceApp.crest_estpen}"></h:outputText></b>
	                	</h:panelGroup>
	                	<h:outputText value="#{crestListaBean.promedioInteresesPendientes}">
	                		<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
	                	</h:outputText>
	                	<h:panelGroup>
	                		<b><h:outputText value="#{resourceApp.crest_maemip}"></h:outputText></b>
	                	</h:panelGroup>
	                	<h:outputText value="#{crestListaBean.crmaeDTO.maemip}"></h:outputText>
	                </h:panelGrid>
	                <rich:spacer height="15"></rich:spacer>
					<rich:spacer></rich:spacer>
					<rich:spacer></rich:spacer>
					<rich:spacer></rich:spacer>
				<rich:dataTable value="#{crestListaBean.crestLista}" id="idTablaesteres" rows="20" rowClasses="filas"
				headerClass="headerText" style=" width : 100%;"
				var="listaResultadoTabla" onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
				onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'" border="1">
				<rich:column sortBy="#{listaResultadoTabla.crestPK.estnme}"
					headerClass="encabezadoCol">
					<f:facet name="header">
						<h:outputText value="#{resourceApp.crest_estnme}" />
					</f:facet>
					<h:outputText value="#{listaResultadoTabla.descripcionMes}"/>
				</rich:column>
				<rich:column sortBy="#{listaResultadoTabla.estsal}"
					headerClass="encabezadoCol">
					<f:facet name="header">
						<h:outputText value="#{resourceApp.crest_estsal}" />
					</f:facet>
					<h:outputText value="#{listaResultadoTabla.estsal}">
						<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
					</h:outputText>	
				</rich:column>
				<rich:column sortBy="#{listaResultadoTabla.estmor}"
					headerClass="encabezadoCol">
					<f:facet name="header">
						<h:outputText value="#{resourceApp.crest_estmor}" />	
					</f:facet>
					<h:outputText value="#{listaResultadoTabla.estmor}">
						<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
					</h:outputText>
				</rich:column>
				<rich:column sortBy="#{listaResultadoTabla.estpen}"
					headerClass="encabezadoCol">
					<f:facet name="header">
						<h:outputText value="#{resourceApp.crest_estpen}" />
					</f:facet>
					<h:outputText value="#{listaResultadoTabla.estpen}">
						<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
					</h:outputText>
				</rich:column>
				</rich:dataTable>
					<rich:spacer height="30" />
					<rich:datascroller align="center"  for="idTablaesteres" maxPages="20" />
				</rich:simpleTogglePanel>
				<rich:simpleTogglePanel switchType="client" label="#{resourceApp.crest_titulo_upesos}" opened="false">
					<rich:spacer></rich:spacer>
					<rich:spacer></rich:spacer>	
	                <h:panelGrid columns="4" cellpadding="0" cellspacing="0" width="100%">
	                	<h:panelGroup>
	                		<b><h:outputText value="#{resourceApp.crest_prom_estavm}"></h:outputText></b>
	                	</h:panelGroup>
	                	<h:outputText id="promedioAvences" value="#{crestListaBean.promedioAvances}">
	                		<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
	                	</h:outputText>
	                	<h:panelGroup>	
	                		<b><h:outputText value="#{resourceApp.crest_mes_estavm}"></h:outputText></b>
	                	</h:panelGroup>
	                	<h:outputText value="#{crestListaBean.contNumAva}"></h:outputText>
	                	<h:panelGroup>
	                		<b><h:outputText value="#{resourceApp.crest_prom_estvem}"></h:outputText></b>
	                	</h:panelGroup>
	                	<h:outputText id="esteresesAnio2" value="#{crestListaBean.contNumAva}">
	                		<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
	                	</h:outputText>
	                	<h:panelGroup>
	                		<b><h:outputText value="#{resourceApp.crest_mes_estvem}"></h:outputText></b>
	                	</h:panelGroup>
	                	<h:outputText value="#{crestListaBean.crmaeDTO.maemvp}"/>
	                	<h:panelGroup>
	                		<b><h:outputText value="#{resourceApp.crest_prom_estpgm}"></h:outputText></b>
	                	</h:panelGroup>
	                	<h:outputText value="#{crestListaBean.promedioPagos}">
	                		<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
	                	</h:outputText>
	                	<h:panelGroup>
	                		<b><h:outputText value="#{resourceApp.crest_mes_estpgm}"></h:outputText></b>
	                	</h:panelGroup>
	                	<h:outputText value="#{crestListaBean.crmaeDTO.maempp}"></h:outputText>
	                </h:panelGrid>
	                <rich:spacer height="15"></rich:spacer>
					<rich:spacer></rich:spacer>
					<rich:spacer></rich:spacer>
					<rich:spacer></rich:spacer>
					<rich:dataTable value="#{crestListaBean.crestLista}" id="uPesos" rows="20" rowClasses="filas"
						headerClass="headerText" style=" width : 100%;"
						var="listaResultadoTabla2" onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
						onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'" border="1">
						<rich:column sortBy="#{listaResultadoTabla2.crestPK.estnme}"
							headerClass="encabezadoCol">
							<f:facet name="header">
								<h:outputText value="#{resourceApp.crest_estnme}" />
							</f:facet>
							<h:outputText value="#{listaResultadoTabla2.descripcionMes}"/>
						</rich:column>
						<rich:column sortBy="#{listaResultadoTabla2.estavm}"
							headerClass="encabezadoCol">
							<f:facet name="header">
								<h:outputText value="#{resourceApp.crest_estavm}" />
							</f:facet>
							<h:outputText value="#{listaResultadoTabla2.estavm}">
								<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
							</h:outputText>
						</rich:column>
						<rich:column sortBy="#{listaResultadoTabla2.estvem}"
							headerClass="encabezadoCol">
							<f:facet name="header">
								<h:outputText value="#{resourceApp.crest_estvem}" />
							</f:facet>
							<h:outputText value="#{listaResultadoTabla2.estvem}">
								<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
							</h:outputText>
						</rich:column>
						<rich:column sortBy="#{listaResultadoTabla2.estpgm}"
							headerClass="encabezadoCol">
							<f:facet name="header">
								<h:outputText value="#{resourceApp.crest_estpgm}" />
							</f:facet>
							<h:outputText value="#{listaResultadoTabla2.estpgm}">
								<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
							</h:outputText>
						</rich:column>
					</rich:dataTable>
					<rich:spacer height="30" />
					<rich:datascroller align="center"  for="uPesos" maxPages="20" />
					
					
				</rich:simpleTogglePanel>
				<rich:simpleTogglePanel switchType="client" label="#{resourceApp.crest_titulo_udolares}" opened="false">
					<rich:spacer></rich:spacer>
					<rich:spacer></rich:spacer>	
	                <h:panelGrid columns="4" cellpadding="0" cellspacing="0" width="100%">
	                	<h:panelGroup>
	                		<b><h:outputText value="#{resourceApp.crest_prom_estamu}"></h:outputText></b>
	                	</h:panelGroup>
	                	<h:outputText value="#{crestListaBean.promedioAvances_US}">
	                		<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
	                	</h:outputText>
	                	<h:panelGroup>	
	                		<b><h:outputText value="#{resourceApp.crest_mes_estamu}"></h:outputText></b>
	                	</h:panelGroup>
	                	<h:outputText value="0"></h:outputText>
	                	<h:panelGroup>
	                		<b><h:outputText value="#{resourceApp.crest_prom_estvmu}"></h:outputText></b>
	                	</h:panelGroup>
	                	<h:outputText id="esteresesAnio3" value="#{crestListaBean.promedioVentas_US}">
	                		<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
	                	</h:outputText>
	                	<h:panelGroup>
	                		<b><h:outputText value="#{resourceApp.crest_mes_estvmu}"></h:outputText></b>
	                	</h:panelGroup>
	                	<h:outputText value="#{crestListaBean.crmaeDTO.maemvd}"/>
	                	<h:panelGroup>
	                		<b><h:outputText value="#{resourceApp.crest_prom_estpmu}"></h:outputText></b>
	                	</h:panelGroup>
	                	<h:outputText value="#{crestListaBean.promedioPagos_US}">
	                		<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
	                	</h:outputText>
	                	<h:panelGroup>
	                		<b><h:outputText value="#{resourceApp.crest_mes_estpmu}"></h:outputText></b>
	                	</h:panelGroup>
	                	<h:outputText value="#{crestListaBean.crmaeDTO.maempd}"></h:outputText>
	                </h:panelGrid>
	                <rich:spacer height="15"></rich:spacer>
					<rich:spacer></rich:spacer>
					<rich:spacer></rich:spacer>
					<rich:spacer></rich:spacer>
					<rich:dataTable value="#{crestListaBean.crestLista}" id="udolares" rows="20" rowClasses="filas"
						headerClass="headerText" style=" width : 100%;"
						var="listaResultadoTabla3" onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
						onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'" border="1">
						<rich:column sortBy="#{listaResultadoTabla3.crestPK.estnme}"
							headerClass="encabezadoCol">
							<f:facet name="header">
								<h:outputText value="#{resourceApp.crest_estnme}" />
							</f:facet>
							<h:outputText value="#{listaResultadoTabla3.descripcionMes}"/>
						</rich:column>
						<rich:column sortBy="#{listaResultadoTabla3.estamu}"
							headerClass="encabezadoCol">
							<f:facet name="header">
								<h:outputText value="#{resourceApp.crest_estamu}" />
							</f:facet>
							<h:outputText value="#{listaResultadoTabla3.estamu}">
								<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
							</h:outputText>
						</rich:column>
						<rich:column sortBy="#{listaResultadoTabla3.estvmu}"
							headerClass="encabezadoCol">
							<f:facet name="header">
								<h:outputText value="#{resourceApp.crest_estvmu}" />
							</f:facet>
							<h:outputText value="#{listaResultadoTabla3.estvmu}">
								<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
							</h:outputText>
						</rich:column>
						<rich:column sortBy="#{listaResultadoTabla3.estpmu}"
							headerClass="encabezadoCol">
							<f:facet name="header">
								<h:outputText value="#{resourceApp.crest_estpmu}" />
							</f:facet>
							<h:outputText value="#{listaResultadoTabla3.estpmu}">
								<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
							</h:outputText>
						</rich:column>
					</rich:dataTable>
					<rich:spacer height="30" />
					<rich:datascroller align="center"  for="udolares" maxPages="20" />
				</rich:simpleTogglePanel>
				<rich:simpleTogglePanel switchType="client" label="#{resourceApp.crest_titulo_pagMin_pagMes}" opened="false">
					<rich:spacer></rich:spacer>
				<rich:spacer></rich:spacer>	
	                <rich:dataTable value="#{crestListaBean.crestLista}" id="uPagMin" rows="20" rowClasses="filas"
						headerClass="headerText" style=" width : 100%;"
						var="listaResultadoTabla4" onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
						onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'" border="1">
						<rich:column sortBy="#{listaResultadoTabla4.crestPK.estnme}"
							headerClass="encabezadoCol">
							<f:facet name="header">
								<h:outputText value="#{resourceApp.crest_estnme}" />
							</f:facet>
							<h:outputText value="#{listaResultadoTabla4.descripcionMes}"/>
						</rich:column>
						<rich:column sortBy="#{listaResultadoTabla4.estsal}"
							headerClass="encabezadoCol">
							<f:facet name="header">
								<h:outputText value="#{resourceApp.crest_estsal}" />
							</f:facet>
							<h:outputText value="#{listaResultadoTabla4.estsal}">
								<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
							</h:outputText>
						</rich:column>
						<rich:column sortBy="#{listaResultadoTabla4.esten1}"
							headerClass="encabezadoCol">
							<f:facet name="header">
								<h:outputText value="#{resourceApp.crest_esten1}" />
							</f:facet>
							<h:outputText value="#{listaResultadoTabla4.esten1}">
								<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
							</h:outputText>
						</rich:column>
						<rich:column sortBy="#{listaResultadoTabla4.estpgm}"
							headerClass="encabezadoCol">
							<f:facet name="header">
								<h:outputText value="#{resourceApp.crest_estpgm}" />
							</f:facet>
							<h:outputText value="#{listaResultadoTabla4.estpgm}">
								<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
							</h:outputText>
						</rich:column>
					</rich:dataTable>
					<rich:spacer height="30" />
					<rich:datascroller align="center"  for="uPagMin" maxPages="20" />
				</rich:simpleTogglePanel>
			</c:if>
		</h:form>
</ui:composition>
</html>
